package de.mhu.mandalaui.attributes;

import java.io.PrintWriter;

import de.mhu.mandalaui.bind.Element;

public class RenderBindCall {
	private Element instance;

	public RenderBindCall(Element inner) {
		this.instance = inner;
	}

	public void render(Attribute attribute, PrintWriter out) {
		if (instance.getOwner() == null) instance.setOwner(attribute.getOwner());
		instance.renderBindCall(out);
	}

	public Element instance() {
		return instance;
	}
	
}
